//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01B
TN_Widget.CreateTable([['Dylan LeBlanc','Charleston Pour House','Charleston, SC','Tuesday','5/7/2024','8:30 PM','6311701','Dylan-LeBlanc-5-7-2024'],['The Lemon Twigs','Charleston Pour House','Charleston, SC','Thursday','5/9/2024','8:30 PM','6320003','The-Lemon-Twigs-5-9-2024'],['Tep No','Deck Stage at Charleston Pour House','Charleston, SC','Friday','5/10/2024','6:00 PM','6264250','Tep-No-5-10-2024'],['Clay Street Unit','Deck Stage at Charleston Pour House','Charleston, SC','Sunday','5/19/2024','7:30 PM','6265606','Clay-Street-Unit-5-19-2024'],['Reverend Horton Heat','Charleston Pour House','Charleston, SC','Tuesday','5/21/2024','7:30 PM','6187252','Reverend-Horton-Heat-5-21-2024'],['Grateful Shred & Circles Around the Sun','Charleston Pour House','Charleston, SC','Friday','5/24/2024','8:30 PM','6306712','Grateful-Shred---Circles-Around-the-Sun-5-24-2024'],['Grateful Shred & Circles Around the Sun','Charleston Pour House','Charleston, SC','Saturday','5/25/2024','8:30 PM','6306713','Grateful-Shred---Circles-Around-the-Sun-5-25-2024'],['Grateful Shred & Circles Around the Sun','Charleston Pour House','Charleston, SC','Sunday','5/26/2024','8:30 PM','6306714','Grateful-Shred---Circles-Around-the-Sun-5-26-2024'],['Mountain Grass Unit','Deck Stage at Charleston Pour House','Charleston, SC','Tuesday','5/28/2024','6:00 PM','6331396','Mountain-Grass-Unit-5-28-2024'],['Matthew Logan Vasquez','Charleston Pour House','Charleston, SC','Tuesday','5/28/2024','8:30 PM','6311605','Matthew-Logan-Vasquez-5-28-2024'],['TWEN - Band','Deck Stage at Charleston Pour House','Charleston, SC','Sunday','6/9/2024','7:30 PM','6333708','TWEN---Band-6-9-2024'],['Mdou Moctar','Charleston Pour House','Charleston, SC','Tuesday','6/11/2024','8:30 PM','6295712','Mdou-Moctar-6-11-2024'],['Badfish','Charleston Pour House','Charleston, SC','Tuesday','6/18/2024','8:00 PM','6359538','Badfish-6-18-2024'],['Maggie Rose','Charleston Pour House','Charleston, SC','Thursday','6/20/2024','8:30 PM','6306279','Maggie-Rose-6-20-2024'],['Pigeons Playing Ping Pong','Charleston Pour House','Charleston, SC','Tuesday','8/27/2024','8:00 PM','6391751','Pigeons-Playing-Ping-Pong-8-27-2024'],['Pigeons Playing Ping Pong','Charleston Pour House','Charleston, SC','Wednesday','8/28/2024','9:30 PM','6391752','Pigeons-Playing-Ping-Pong-8-28-2024'],['The Collection','Charleston Pour House','Charleston, SC','Thursday','8/29/2024','8:30 PM','6375893','The-Collection-8-29-2024'],['Pokey LaFarge','Charleston Pour House','Charleston, SC','Thursday','9/12/2024','9:00 PM','6406398','Pokey-LaFarge-9-12-2024'],['Smells Like Nirvana - Nirvana Tribute','Charleston Pour House','Charleston, SC','Friday','5/23/2070','TBD','4423600','Smells-Like-Nirvana---Nirvana-Tribute-5-23-2070']],'The Pour House Charleston','http://www.ticketnetwork.com/ticket/The-Pour-House-Charleston-events.aspx');